package com.ruoyi.petrol.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.petrol.mapper.ChePetrolMapper;
import com.ruoyi.petrol.domain.ChePetrol;
import com.ruoyi.petrol.service.IChePetrolService;

/**
 * 加油站信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-01-02
 */
@Service
public class ChePetrolServiceImpl implements IChePetrolService 
{
    @Autowired
    private ChePetrolMapper chePetrolMapper;

    @Override
    public String selectChePetrolImageById(Long id) {
        return chePetrolMapper.selectChePetrolImageById(id);
    }

    /**
     * 查询加油站信息
     * 
     * @param id 加油站信息主键
     * @return 加油站信息
     */
    @Override
    public ChePetrol selectChePetrolById(Long id)
    {
        return chePetrolMapper.selectChePetrolById(id);
    }

    /**
     * 查询加油站信息列表
     * 
     * @param chePetrol 加油站信息
     * @return 加油站信息
     */
    @Override
    public List<ChePetrol> selectChePetrolList(ChePetrol chePetrol)
    {
        return chePetrolMapper.selectChePetrolList(chePetrol);
    }

    /**
     * 新增加油站信息
     * 
     * @param chePetrol 加油站信息
     * @return 结果
     */
    @Override
    public int insertChePetrol(ChePetrol chePetrol)
    {
        return chePetrolMapper.insertChePetrol(chePetrol);
    }

    /**
     * 修改加油站信息
     * 
     * @param chePetrol 加油站信息
     * @return 结果
     */
    @Override
    public int updateChePetrol(ChePetrol chePetrol)
    {
        return chePetrolMapper.updateChePetrol(chePetrol);
    }

    /**
     * 批量删除加油站信息
     * 
     * @param ids 需要删除的加油站信息主键
     * @return 结果
     */
    @Override
    public int deleteChePetrolByIds(Long[] ids)
    {
        return chePetrolMapper.deleteChePetrolByIds(ids);
    }

    /**
     * 删除加油站信息信息
     * 
     * @param id 加油站信息主键
     * @return 结果
     */
    @Override
    public int deleteChePetrolById(Long id)
    {
        return chePetrolMapper.deleteChePetrolById(id);
    }
}
